package com.cooper.entity;

import com.cooper.domain.Entity;

/**
 * 
* @Description: 
* @version: v1.0.0
* @author: tianlg
* @date: Jan 8, 2015 10:09:33 AM
*
* Modification History:
* Date         Author          Version            Description
*---------------------------------------------------------*
* Jan 8, 2015      tianlg          v1.0.0
 */
public class Keygen extends Entity{
	
	private static final long serialVersionUID = -3495314968359485109L;
	
	public static final long DEFAULT_MIN_VALUE = 100001L;
	public static final long DEFAULT_MAX_VALUE = 999999L;

	private String keyName;
	
	private int cacheNum = 10;
	
	private long minValue = DEFAULT_MIN_VALUE;
	private long maxValue = DEFAULT_MAX_VALUE;

	private long nextValue = minValue;
	
	public String getKeyName() {
		return this.keyName;
	}

	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}

	public long getNextValue() {
		return nextValue;
	}

	public void setNextValue(long nextValue) {
		this.nextValue = nextValue;
	}

	public int getCacheNum() {
		return this.cacheNum;
	}

	public void setCacheNum(int cacheNum) {
		this.cacheNum = cacheNum;
	}

	public long getMinValue() {
		return minValue;
	}

	public void setMinValue(long minValue) {
		this.minValue = minValue;
	}

	public long getMaxValue() {
		return maxValue;
	}

	public void setMaxValue(long maxValue) {
		this.maxValue = maxValue;
	}

}
